Piwik\Plugin\Visualization D

Total Complexity 128
Dependencies 30
Dependents 1
Total lines 619
Lines of code 424
Logical lines of code 285
Comment lines 145
Methods 32
Properties 4

Methods 32

Method Rating Maintainability Complexity Lines of code
getClientSideParametersToSet()
B
41 18 50
postDataTableLoadedFromAPI()
B
44 17 43
render()
A
38 14 65
buildApiRequestArray()
S
56 7 17
hasAnyData()
S
57 7 17
applyFilters()
S
51 5 28
removeEmptyColumnsFromDisplay()
S
57 5 16
addVisualizationInfoFromMetricMetadata()
S
59 5 13
getReportMetadata()
S
55 4 19
logMessageIfRequestPropertiesHaveChanged()
S
56 4 16
getClientSidePropertiesToSet()
S
62 4 11
loadDataTableFromAPI()
S
54 3 20
assignTemplateVar()
S
65 4 9
hasReportSegmentDisabled()
S
66 3 8
overrideSomeConfigPropertiesIfNeeded()
S
67 3 8
makePrettyArchivedOnText()
S
59 2 13
makeSureArrayContainsOnlyStrings()
S
68 2 7
__construct()
S
64 2 9
hasReportBeenPurged()
S
71 2 6
getIntIfValueIsBool()
S
79 2 3
isThereDataToDisplay()
S
78 2 3
checkRequestIsOnlyForMultiplePeriods()
S
67 2 8
checkRequestIsNotForMultiplePeriods()
S
68 2 7
beforeLoadDataTable()
S
91 1 2
beforeGenericFiltersAreAppliedToLoadedDataTable()
S
91 1 2
afterGenericFiltersAreAppliedToLoadedDataTable()
S
91 1 2
afterAllFiltersAreApplied()
S
91 1 2
beforeRender()
S
91 1 2
fireBeforeRenderHook()
S
79 1 3
makeDataTablePostProcessor()
S
67 1 8
isPluginActivated()
S
80 1 3
applyMetricsFormatting()
S
75 1 4